package com.qwz.example.colleague;

import com.qwz.example.Mediator;

/**
* @Description: 声卡类，一个同事类
* @Package com.qwz.example.SoundCard
* @author Qiuwuzhi
* @date 2019/12/24 14:38
* @version V1.0
*/
public class SoundCard extends Colleague{

    /**
     * 构造方法，传入中间件对象
     *
     * @param mediator
     */
    public SoundCard(Mediator mediator) {
        super(mediator);
    }

    /**
     * 按照声频数据发出声音
     * @param data
     */
    public void soundData(String data){
        System.out.println("画外音："+data);
    }
}
